<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>XYChart.addAxis</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="XYChart.htm">XYChart</a>.<wbr>addAxis</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public Axis addAxis(int align, int offset)
</div>
<p class="heading2">Description</p>
<div class="content">
Adds an additional axis to the chart.<br><br>
By default, ChartDirector XY charts have 2 x-axes and 2 y-axes at the 4 borders of the plot area. The addAxis method can be used to create additional axis.<br><br>
The new axis will be put at one of the 4 borders of the plot area. To avoid overlapping with existing axis, the new axis will not be put exactly as the plot area border, but at an offset from it.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>align</td><td>(Mandatory)</td><td>Specifies which side of the plot area is the primary side of the axis. Must be one of the constants <a href="Chart.Left.htm">Left</a>, <a href="Chart.Right.htm">Right</a>, <a href="Chart.Top.htm">Top</a> and <a href="Chart.Bottom.htm">Bottom</a> for the 4 sides of the plot area.</td></tr><tr><td>offset</td><td>(Mandatory)</td><td>An offset in pixels to move the axis away from the plot area. If a negative value is used, it will mean to move the axis into the plot area.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
An <a href="Axis.htm">Axis</a> object representing the new axis added.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
